package com.ttg.common.enums;

import lombok.Getter;

/**
 * Description： 阶梯规则类型
 * Author: chenyou
 * Date: 2025/8/26 10:55
 * Company: ttg
 * Copyright: Copyright (c) 2025
 */
@Getter
public enum LadderRuleTypeEnum {

    行业活跃度(0,"行业活跃度"),

    清算成本(1,"清算成本"),

    户均归集(2,"户均归集"),

    商户活跃天数(3,"商户活跃天数"),
    ;

    LadderRuleTypeEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private int value;
    private String desc;

    public static LadderRuleTypeEnum getByVal(int value){
        for(LadderRuleTypeEnum curr:LadderRuleTypeEnum.values()){
            if(curr.value==value){
                return curr;
            }
        }
        return null;
    }
}
